package com.yanqu.road.entity.activity.ppl;

/**
 * 泡泡龙活动道具
 */
public class PplGoods {

    /**
     * 道具id
     */
    private int goodsId;

    /**
     * 类型
     * 1.体力药：恢复体力
     * 2.琴谱：加魅力、获得道具奖励
     */
    private int type;

    /**
     * 恢复体力
     */
    private int addEnergy;

    /**
     * 增加魅力
     */
    private int addGlamour;

    /**
     * 道具奖励
     */
    private String reward = "";

    /**
     * 体力药
     */
    public static PplGoods newEnergy(int goodsId, int addEnergy) {
        PplGoods pplGoods = new PplGoods();
        pplGoods.setGoodsId(goodsId);
        pplGoods.setAddEnergy(addEnergy);
        pplGoods.setType(1);
        return pplGoods;
    }

    /**
     * 琴谱
     */
    public static PplGoods newBook(int goodsId, int addGlamour, String boxId) {
        PplGoods pplGoods = new PplGoods();
        pplGoods.setGoodsId(goodsId);
        pplGoods.setAddGlamour(addGlamour);
        pplGoods.setReward(boxId + "=1"); // 这里的宝箱可随时使用
        pplGoods.setType(2);
        return pplGoods;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getAddEnergy() {
        return addEnergy;
    }

    public void setAddEnergy(int addEnergy) {
        this.addEnergy = addEnergy;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getAddGlamour() {
        return addGlamour;
    }

    public void setAddGlamour(int addGlamour) {
        this.addGlamour = addGlamour;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }
}
